package com.guobox.movies;

import android.app.Application;
import android.graphics.Typeface;

import com.guobox.movies.constant.Constant;
import com.tencent.bugly.Bugly;

/**
 * Created by xuxinlei on 2017/6/30.
 */

public class APP extends Application {
    private static Typeface typeface;
    private static Application application;
    @Override
    public void onCreate() {

        super.onCreate();
        //818b1ec609
        application = this;
//        CrashReport.initCrashReport(getApplicationContext(), "818b1ec609", true);
        Bugly.init(getApplicationContext(), "818b1ec609", false);
        typeface = Typeface.createFromAsset (getAssets() , Constant.FACE_TYPE);

    }

    public static Typeface getTypeface() {
        return typeface;
    }

    public static Application getApplication() {
        return application;
    }



}
